package com.tencent.cloud.iov.recycler.block;

import android.support.v7.widget.GridLayoutManager;

/**
 * 区块布局横向占位空间大小查找器
 *
 * 通过区块数据确定该区块布局横向占用空间大小
 *
 * @author showxiao
 * @date 2018/3/29
 */

public class BlockSpanSizeLookup extends GridLayoutManager.SpanSizeLookup {

    private final BlockRecyclerAdapter mAdapter;

    public BlockSpanSizeLookup(BlockRecyclerAdapter adapter) {
        mAdapter = adapter;
    }

    @Override
    public int getSpanSize(int position) {
        // TODO: 2018/4/17 showxiao 后续按需实现
        return 1;
    }
}
